package cn.xiaolang.function.design_pattern.duty_chain_pattern_base;

/**
 * 基础处理器
 *
 * @author Dean
 * @date 2023/8/15
 */
public abstract class BaseProcessor {

    protected BaseProcessor next;

    abstract void process(ProcessorContext context);

    public void setNext(BaseProcessor next) {
        this.next = next;
    }
}
